package com.lagou.sqlSession;

import com.lagou.pojo.Configuration;
import com.lagou.pojo.MappedStatement;

import java.sql.SQLException;
import java.util.List;

/**
 * 执行器接口
 */
public interface Executor {

    //查询执行器接口
    <E> List<E> query(Configuration configuration, MappedStatement mappedStatement,Object...params) throws Exception;

    //添加/修改/删除执行器接口：注这三个操作根据MappedStatement的sql决定
    int update(Configuration configuration,MappedStatement ms, Object...params) throws Exception;



}
